<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

        <title>会员列表</title>

        <link href="<?php echo ADMIN_CSS_URL; ?>/mine.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
        <style>
            .tr_color{background-color: #9F88FF}
        </style>
        <div class="div_head">
            <span>
                <span style="float: left;">当前位置是：商品管理-》商品列表</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <a style="text-decoration: none;" href="./index.php?r=admin/goods/add">【添加商品】</a>
                </span>
            </span>
        </div>
        <div></div>
        <div class="div_search">
            <span>
                <form action="#" method="get">
                   	 分类
                   	 <select name="product_band" style="width: 100px;">
                        <option selected="selected" value="0">请选择</option>
                        <option value="1">分类1</option>
                        <option value="2">分类2</option>
                        <option value="3">分类3</option>
                    </select>
					品牌
                   	 <select name="product_category" style="width: 100px;">
                        <option selected="selected" value="0">请选择</option>
                        <option value="1">品牌1</option>
                        <option value="2">品牌2</option>
                        <option value="3">品牌3</option>
                    </select>
					商品名称
                   	<input value="" type="text" name="product_name"/>
                    <input value="查询" type="submit" />
                </form>
            </span>
        </div>
        <div style="font-size: 13px; margin: 10px 5px;">
            <table class="table_a" border="1" width="100%">
                <tbody><tr style="font-weight: bold;">
                        <td>序号</td>
                        <td>商品名称</td>
                        <td>库存</td>
                        <td>价格</td>
                        <td>图片</td>
                        <td>缩略图</td>
                        <td>品牌</td>
                        <td>创建时间</td>
                        <td colspan="2">操作</td>
                    </tr>
                    <?php 
                    	foreach ($goods_info as $key=>$value)
                    	{
                    ?>
                    <tr id="product<?php echo $value->goods_id?>">
                        <td><?php echo $value->goods_id?></td>
                        <td><a href="./index.php?r=admin/goods/update"><?php echo $value->goods_name?></a></td>
                        <td><?php echo $value->goods_number?></td>
                        <td><?php echo $value->goods_price?></td>
                        <td><img src="<?php echo ADMIN_IMG_URL; ?>/20121018-174034-58977.jpg" height="60" width="60"></td>
                        <td><img src="<?php echo ADMIN_IMG_URL; ?>/20121018-174034-97960.jpg" height="40" width="40"></td>
                        <td><?php echo $value->goods_brand_id?></td>
                        <td><?php echo date('Y-m-d H:i:s',$value->goods_price)?></td>
                        <td><a href="./index.php?r=admin/goods/update&id=<?php echo $value->goods_id?>">修改</a></td>
                        <td><a href="javascript:if(confirm('确实要删除吗?'))location='./index.php?r=admin/goods/del&id=<?php echo $value->goods_id?>'">删除</a></td>
                    </tr>
                    <?php 
                    	}
                    ?>
                    <tr>
                        <td colspan="20" style="text-align: center;">
                            <?php echo $page_list;?>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </body>
</html>